<?php


namespace app\admin\validate;


use think\Validate;

class Article extends Validate {
    protected $rule = [
        'category_id' => 'require',
        'title' => 'require',
        'content' => 'require'
    ];
    protected $message = [
        'category_id' => '文章类型category_id不能为空',
        'title' => '文章标题不能为空',
        'content' => '文章内容不能为空'
    ];
}